OutcomeEffectScope

value class OutcomeEffectScope<E>(cont: EffectScope<Either<Failure<E>, Absent>>) : EffectScope<Either<Failure<E>, Absent>> (source)

Constructors

Link copied to clipboard
constructor(cont: EffectScope<Either<Failure<E>, Absent>>)

Functions

Link copied to clipboard
open suspend fun <E, A> attempt(f: suspend EffectScope<E>.() -> A): suspend EffectScope<E>.() -> A
Link copied to clipboard
suspend fun <B> Outcome<E, B>.bind(): B
open suspend fun <B> Either<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> Validated<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> EagerEffect<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> Effect<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> EagerEffect<Either<Failure<E>, Absent>, B>.bind(): B
open suspend fun <B> suspend Raise<Either<Failure<E>, Absent>>.() -> B.bind(): B
open suspend fun <B> Option<B>.bind(shift: () -> Either<Failure<E>, Absent>): B
open suspend fun <B> Result<B>.bind(transform: (Throwable) -> Either<Failure<E>, Absent>): B
Link copied to clipboard
open infix suspend fun <E, A> suspend EffectScope<E>.() -> A.catch(recover: suspend EffectScope<Either<Failure<E>, Absent>>.(E) -> A): A
Link copied to clipboard
open suspend fun ensure(condition: Boolean, shift: () -> Either<Failure<E>, Absent>)
Link copied to clipboard
open infix suspend fun <E, A> suspend EffectScope<E>.() -> A.recover(recover: suspend EffectScope<Either<Failure<E>, Absent>>.(E) -> A): A
Link copied to clipboard
open suspend override fun <B> shift(r: Either<Failure<E>, Absent>): B